Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: added onError functionality to spinner #9048

Merged
merged 5 commits into from
Nov 10, 2023

Conversation

skirianov
Copy link
Contributor

This PR is a fixed version of the closed by mistake PR: #8993

@ematipico - sorry, made an error and have to reopen new PR

Changes

Added onError function to handle errors inside spinner if while function throws an errors.

new onError property inside dependencies.ts spinner
while function catches and throws an error if installing dependencies fails
messages.ts/spinner accept new args

  • What does this change?
  • Be short and concise. Bullet points can help!
  • Before/after screenshots can help as well.
  • Don't forget a changeset! pnpm exec changeset

Testing

Manual testing.

Docs

This PR does not require changes in docs.

Copy link

changeset-bot bot commented Nov 10, 2023

🦋 Changeset detected

Latest commit: 6eaec0c

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added pkg: create-astro Related to the `create-astro` package (scope) pr: docs A PR that includes documentation for review labels Nov 10, 2023
@skirianov skirianov changed the title Fix/create astro spinner error fix: added onError functionality to spinner Nov 10, 2023
@skirianov
Copy link
Contributor Author

sorry for the mess @ematipico and @sarah11918 🥲

@ematipico ematipico merged commit 1e97708 into withastro:main Nov 10, 2023
13 checks passed
@astrobot-houston astrobot-houston mentioned this pull request Nov 10, 2023
natemoo-re pushed a commit that referenced this pull request Nov 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: create-astro Related to the `create-astro` package (scope) pr: docs A PR that includes documentation for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants